home *** CD-ROM | disk | FTP | other *** search
- >** - top of file - |
- >**
-
- vartutor.do - V. 1.0.0 - 02/21/92.
-
- By Al Fasoldt.
-
-
- A script written to show how variables can be manipulated.
- Please do not edit this using word wrap. This has not been fully
- debugged, and is nothing more than an interesting classroom
- exercise.
-
- |
-
- >L: top|
- >ty |
- >qu "Type the directory|to use as the default:" $X 1|
- >if X jmp TestforColon|
- >al "[3][You did not type anything.|Try again?][Yes|No]" $X 1|
- >ifi $X "No" end|
- >jmp top|
- >L: TestforColon|
- >$Y &$X@|
- >ifi $Y :@ jmp ColonOK|
-
- >** etc.|
-
- >$X |
- >al "[3][Your directory name|MUST include a colon!][Sorry!|Quit]" $X 1|
- >ifi $X "Quit" end|
- >jmp top|
- >L: ColonOK|
- >$Y _$X_|
- >ifi $Y "_\" jmp LeadingSlash|
- >ifi $Y "$X_" jmp Trailing Slash|
- >ty ------------------------------|
- >ty|
- >ty You typed $X.|
- >ty|
- >ty ------------------------------|
- >ty|
- >ca on|>ca cl|
- >log "xxxxxxxx"|
- >sa ca $X\test.dat|
- >ca cl|
- >op $X\test.dat|
- >if ~op jmp TryPath2|
- >$Y $X\|
- >$X $Y|
- >jmp PathOK|
- >L: TryPath2|
- >sa ca \$X\test.dat|
- >ca cl|
- >op \$X\test.dat|
- >if ~op jmp NoPath|
- >$Y \$X\|
- >$X $Y|
- >jmp PathOK|
- >L: NoPath|
- >al "[3][That directory|does not exist!][Ooops!]" 1 $A|
- >jmp top|
- >L: pathOK|
- >al "[2][Is this OK?][Yes|No][1]" $Y|
- >ifi $Y "No" jmp top|
- >$Z _$Y&|
- >end|
-